package com.idheima.zuoye.zuoye4;

public class Pig extends  Animal{
    public Pig(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(getName()+"猪吃饲料");

    }
}
